From: Joey Hess Date: Fri, 7 Mar 2025 20:01:27 +0000 (-0400) Subject: redirect command stdout to stderr X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~6^2~109 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ed519242117f1e760c330d1d00d08ac6b35bddb9;p=git-annex.git redirect command stdout to stderr Otherwise it will be interpreted as compute program protocol --- diff --git a/doc/design/compute_special_remote_interface.mdwn b/doc/design/compute_special_remote_interface.mdwn index 93da38147b..e6fad0f2b1 100644 --- a/doc/design/compute_special_remote_interface.mdwn +++ b/doc/design/compute_special_remote_interface.mdwn @@ -110,5 +110,5 @@ An example `git-annex-compute-foo` shell script follows: echo REPRODUCIBLE if [ -n "$input" ]; then - frobnicate --passes="$ANNEX_COMPUTE_passes" <"$input" >"$output" + frobnicate --passes="$ANNEX_COMPUTE_passes" -i "$input" -o "$output" >&2 fi diff --git a/doc/special_remotes/compute/git-annex-compute-imageconvert b/doc/special_remotes/compute/git-annex-compute-imageconvert index 3ecd4c0790..bdcb665ea1 100755 --- a/doc/special_remotes/compute/git-annex-compute-imageconvert +++ b/doc/special_remotes/compute/git-annex-compute-imageconvert @@ -17,5 +17,5 @@ echo "OUTPUT $2" read output if [ -n "$input" ]; then - convert "$input" "$output" + convert "$input" "$output" >&2 fi